package com.turbo.cloud.core.exception;


import com.turbo.cloud.core.exception.enums.BaseAlertEnum;

/**
 * 自定义业务异常
 *
 * @author
 */
public class BusinessException extends RuntimeException {

    public BusinessException() {
        super();
    }

    public BusinessException(BaseAlertEnum baseAlertEnum) {
        super("【" + baseAlertEnum.getCode() + "】" + baseAlertEnum.getMessage());
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String message, Throwable cause) {
        super(message + ";" + cause.getMessage(), cause);
    }
}
